package com.maimao.model.common;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 修改某个状态字段的入参实体
 * 如 修改是否热门 是否推荐等
 * @author MaoLin Wang
 * @date 2020/12/11 11:33 上午
 */
@AllArgsConstructor
@NoArgsConstructor
public class StatusInput {

    /**
     * 实体id
     */
    @NotNull(message = "请选择要修改的数据")
    @Min(value = 1,message = "非法参数")
    private Long id;
    /**
     * 修改后的状态
     */
    @NotNull(message = "状态非法")
    private Integer status;

    private Object other;

    public Object getOther() {
        return other;
    }

    public void setOther(Object other) {
        this.other = other;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "StatueInput{" +
                "id=" + id +
                ", status=" + status +
                '}';
    }
}
